jade.content.schema
Class ActionPredicateSchema

java.lang.Object
  |
  +--jade.content.schema.ObjectSchema
        |
        +--jade.content.schema.ContentElementSchema
              |
              +--jade.content.schema.PropositionSchema
                    |
                    +--jade.content.schema.ActionPredicateSchema

public class ActionPredicateSchema
extends PropositionSchema

Author:
Federico Bergenti - Universita` di Parma

Fields inherited from class jade.content.schema.PropositionSchema
BASE_NAME
 
Fields inherited from class jade.content.schema.ContentElementSchema
BASE_NAME
 
Fields inherited from class jade.content.schema.ObjectSchema
MANDATORY, OPTIONAL
 
Constructor Summary
ActionPredicateSchema(java.lang.String name)
          Constructor
 
Method Summary
 void add(java.lang.String name, GenericActionSchema actionSchema)
          Add parameters to the schema.
 void add(java.lang.String name, GenericActionSchema actionSchema, int cardinality)
          Add parameters to the schema.
 void add(java.lang.String name, TermSchema termSchema)
          Add parameters to the schema.
 void add(java.lang.String name, TermSchema termSchema, int cardinality)
          Add parameters to the schema.
 AbsObject newInstance()
          Creates a new instance.
 
Methods inherited from class jade.content.schema.PropositionSchema
getBaseSchema
 
Methods inherited from class jade.content.schema.ObjectSchema
addBaseSchema, addElement, addElement, getNames, getSchema, getTypeName, isAttribute, isMandatory
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ActionPredicateSchema

public ActionPredicateSchema(java.lang.String name)
Constructor
Parameters:
name - name of the schema.
Method Detail

add

public void add(java.lang.String name,
                GenericActionSchema actionSchema)
Add parameters to the schema.
Parameters:
name - name of the parameter.
actionSchema - the schema of the parameter.

add

public void add(java.lang.String name,
                GenericActionSchema actionSchema,
                int cardinality)
Add parameters to the schema.
Parameters:
name - name of the parameter.
actionSchema - the schema of the parameter.
cardinality - the cardinality, i.e., optional or mandatory.

add

public void add(java.lang.String name,
                TermSchema termSchema)
Add parameters to the schema.
Parameters:
name - name of the parameter.
termSchema - schema of the parameter.

add

public void add(java.lang.String name,
                TermSchema termSchema,
                int cardinality)
Add parameters to the schema.
Parameters:
name - name of the parameter.
actionSchema - the schema of the parameter.
cardinality - the cardinality, i.e., optional or mandatory.

newInstance

public AbsObject newInstance()
Creates a new instance.
Overrides:
newInstance in class PropositionSchema
Returns:
teh new instance.